#include "editabilityitem.h"

int CEditAbilityItem::EditAbilityID =1;

CEditAbilityItem::CEditAbilityItem(QString name,QIcon icon,int id) :
    QTreeWidgetItem()
{
    if(id==-1){//new id
        ID = EditAbilityID;
        EditAbilityID++;
    }
    else
        ID = id;
    this->setText(0,name);
    this->setIcon(0,icon);
}
